package com.tc.property.config;

import com.tc.property.config.handler.IConfigSourceChangedHandler;
import com.tc.property.config.model.ConfigItem;

import java.util.LinkedList;
import java.util.Map;

public abstract class AbstractConfig implements IConfig {

	protected String source;

	protected Boolean ignoreResourceNotFound;

	public AbstractConfig(String source) {
		super();
		this.source = source;
	}

	public AbstractConfig(String source, Boolean ignoreResourceNotFound) {
		super();
		this.source = source;
		this.ignoreResourceNotFound = ignoreResourceNotFound;
	}

	@Override
	public Map<String, ConfigItem> getConfig() {
		return getConfig(new LinkedList<IConfigSourceChangedHandler>());
	}

}
